package com.example.musicbox.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * 
 * </p>
 *
 * @author 帅哥是我
 * @since 2022-08-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="MLog对象", description="")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class MLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "日志id")
    @TableId(value = "uLogId", type = IdType.AUTO)
    private Integer ulogid;

    @ApiModelProperty(value = "用户id")
    @TableField("uId")
    private Integer uid;

    @ApiModelProperty(value = "用户姓名")
    @TableField("uName")
    private String uname;

    @ApiModelProperty(value = "该用户做了什么")
    @TableField("doWhat")
    private String dowhat;

    @ApiModelProperty(value = "做这个事情的时间")
    @TableField(value = "doData",fill = FieldFill.INSERT)
    private LocalDateTime dodata;

    @ApiModelProperty(value = "做了什么类型   0为听音乐 1为上传音乐 2为下载音乐")
    @TableField("doType")
    private String doType;

    @ApiModelProperty(value = "音乐的id  当类型为0的时候才有")
    @TableField("mId")
    private Integer mId;

    @ApiModelProperty(value = "用户做了什么类型  增删改查")
    @TableField("lType")
    private String lType;


}
